package com.aplink.generic.pojo.controlspec;

import java.io.Serializable;
import java.util.ArrayList;

public class PopupMenuSpec {
    private ArrayList<PopupMenuItem> mPopupMenuItems;

    public PopupMenuSpec() {
        setMenuItems( new ArrayList<PopupMenuSpec.PopupMenuItem>() );
    }

    public ArrayList<PopupMenuItem> getPopupMenuItems() {
        return mPopupMenuItems;
    }

    public void setMenuItems( ArrayList<PopupMenuItem> popupMenuItems ) {
        mPopupMenuItems = popupMenuItems;
    }

    public void add( PopupMenuItem popupMenuItem ) {
        mPopupMenuItems.add( popupMenuItem );
    }

    public class PopupMenuItem implements Serializable {
        private static final long serialVersionUID = - 7538144702581547261L;
        private String mTitle;
        private String mClassName;

        public String getTitle() {
            return mTitle;
        }

        public void setTitle( String title ) {
            mTitle = title;
        }

        public String getClassName() {
            return mClassName;
        }

        public void setClassName( String className ) {
            mClassName = className;
        }

    }
}
